/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author mehdi
 */
@Entity
public class Sequence implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    
    private String Hosq;
   
   private String Desq;
  
   private String Crsq;
   
   private String Udsq;
   
   private String Dusq;
   
   @ManyToOne
   private Module modu;
   
    public Sequence() {
    }

    public Module getModu() {
        return modu;
    }

    public void setModu(Module modu) {
        this.modu = modu;
    }

    public String getCrsq() {
        return Crsq;
    }

    public void setCrsq(String Crsq) {
        this.Crsq = Crsq;
    }

    public String getDesq() {
        return Desq;
    }

    public void setDesq(String Desq) {
        this.Desq = Desq;
    }

    public String getDusq() {
        return Dusq;
    }

    public void setDusq(String Dusq) {
        this.Dusq = Dusq;
    }

    public String getHosq() {
        return Hosq;
    }

    public void setHosq(String Hosq) {
        this.Hosq = Hosq;
    }

    public String getUdsq() {
        return Udsq;
    }

    public void setUdsq(String Udsq) {
        this.Udsq = Udsq;
    }

   

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Sequence)) {
            return false;
        }
        Sequence other = (Sequence) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.Sequence[ id=" + id + " ]";
    }
    
}
